package com.chuqiyun.authorization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * (User)表实体类
 *
 * @author mryunqi
 * @since 2023-04-14 17:36:26
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "User")
@Data
public class User extends Model<User> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //唯一uuid
    private String uuid;
    //密码
    private String password;
    //电话
    private String phone;
    //用户名
    private String username;
    // 电子邮件
    private String email;
    //微信id
    private String wechatId;
    //qq号
    private String qq;
    //国家
    private String country;
    //省份
    private String province;
    //城市
    private String city;
    //区
    private String region;
    //具体地址
    private String address;
    //邮编
    private Integer postcode;
    //国际电话区号 默认86
    private Integer phoneCode;
    //余额
    private Double credit;
    //税号
    private String taxId;
    //免税（0：否，1：是）
    private Integer taxexempt;
    private Long loginDate;
    private Long registerDate;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    }

